/**
 * Created by zzc on 2017/11/23
 */

'use strict'

import React, {Component} from 'react';

import {
    View,
    Text,
    TextInput,
    StyleSheet,
    WebView,
} from 'react-native';

import BaseScene from '../../base/BaseScene'

const DEFAULT_URL = "http://www.ishangzu.com"

export default class DiscoverDetailScene extends BaseScene {

    constructor(props) {
        super(props);
    }

    render() {
        return (
            <View style={{flex:1}}>
                <WebView style={styles.webview_style}
                         source={{uri: this.props.url === undefined ? DEFAULT_URL : this.props.url}}
                         startInLoadingState={true}
                         domStorageEnabled={true}
                         javaScriptEnabled={true}>
                </WebView>
            </View>
        );
    }
}

const styles = StyleSheet.create({
    webview_style:{
        backgroundColor:'#F7F8FA',
    }
});